﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Sys_User: CustomAggregateRoot<string>
    {

        /// <summary>
        /// 1 博客
        /// </summary>

        public int Category { get; set; }

        [Required]
        [StringLength(50)]
        public string UserName { get; set; }

        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 1 男;   2 女
        /// </summary>

        public int? Sex { get; set; }
      
        [Column(TypeName = "dateTime")]
        public DateTime? Birthdate { get; set; }

        [StringLength(50)]
        public string? Nickname { get; set; }

        [StringLength(20)]
        public string? MobileNo { get; set; }

        [StringLength(50)]
        public string? Email { get; set; }

        [StringLength(200)]
        public string? PersonalImage { get; set; }

        [StringLength(50)]
        public string? Password { get; set; }

        [StringLength(100)]
        public string? Remark { get; set; }

        public bool IsActive { get; set; }

        public int Sort { get; set; }

        public virtual ICollection<Blog_Collect> Blog_Collect { get; } = new HashSet<Blog_Collect>();

        public virtual ICollection<Blog_Focus> Blog_FocusFocusOn { get; } = new HashSet<Blog_Focus>();

        public virtual ICollection<Blog_Focus> Blog_FocusPerson { get; } = new HashSet<Blog_Focus>();

        public virtual ICollection<Blog_Info> Blog_Info { get; } = new HashSet<Blog_Info>();

        public virtual ICollection<Blog_PersonCategory> Blog_PersonCategory { get; } = new HashSet<Blog_PersonCategory>();

        public virtual ICollection<Blog_PersonLabel> Blog_PersonLabel { get; } = new HashSet<Blog_PersonLabel>();

        public virtual Blog_Personal Blog_Personal { get; set; }

        public virtual ICollection<Sys_UserRole> Sys_UserRole { get; } = new HashSet<Sys_UserRole>();

        public virtual ICollection<Sys_User_RefreshToken> Sys_User_RefreshToken { get; } = new HashSet<Sys_User_RefreshToken>();

    }
}
